package com.cenxi.dao.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDateTime;
import java.util.Date;

import com.cenxi.common.base.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 账户表
 * @TableName cx_account
 */
@EqualsAndHashCode(callSuper = true)
@TableName(value ="busi_account")
@Data
public class Account extends BaseModel {

    /**
     * 账号
     */
    @TableField(value = "account")
    private String account;

    /**
     * 用户名称
     */
    @TableField(value = "nick_name")
    private String nickName;

    /**
     * 密码
     */
    @TableField(value = "password")
    private String password;

    /**
     * 0-禁用 1-启用
     */
    @TableField(value = "state")
    private Integer state;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 最后登录时间
     */
    @TableField(value = "login_time")
    private LocalDateTime loginTime;


    /**
     * 头像
     */
    @TableField(value = "avatar")
    private String avatar;
}
